using System;
using cuberga.Utils;
using cuberga.Workflow;
using cuberga.GA;

namespace cuberga
{
    class Program
    {
        static void Main()
        {
            Console.WriteLine("-------");
            Console.WriteLine("CuberGA");
            Console.WriteLine("-------");
            
            GACoreFactory gaCoreFactory = new GACoreFactory();
            WorkflowLoader loader = new WorkflowLoader(Configuration.WorkflowFileName, gaCoreFactory);
            Schema schema = loader.LoadFromFile();
            schema.Start();

            Console.WriteLine("---------------------");
            Console.WriteLine("press any key to exit");
            Console.WriteLine("---------------------");
            Console.ReadLine();
        }
    }
}
